package chronus.pack;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;


// Klasa koja opisuje prostoriju muzeja
@Root
public class Room {

 // Sort order
 @Element
 private int sortOrder = 0;
 public int getSortOrder()
 {
	 return sortOrder;
 }
 public void setSortOrder(int value)
 {
	 sortOrder = value;
 }
 
 // Naziv 
 @Element
 private String name = "";
 public String getName()
 {
	 return name;
 }
 public void setName(String value)
 {
	 name = value;
 }
 
 // Opis 
 @Element
 private String description = "";
 public String getDescription()
 {
	 return description;
 }
 public void setDescription(String value)
 {
	 description = value;
 }
 
 @Element
 private URL url = null;
 public URL getUrl()
 {
	 return url;
 }
 public void setUrl(String value) throws MalformedURLException
 {
	 this.url = new URL(value);
 }
 
 private ArrayList<Room> nextRooms = null;
}
